<%--
    Document   : index
    Created on : 12.02.2010, 22:48:51
    Author     : Morfant
--%>

<%@page import="java.util.Map"%>
<%@page import="stud.cp.user.valueobjects.DBObject"%>
<%@page import="stud.cp.user.valueobjects.DBObjectType"%>
<%@page import="java.util.List"%>
<%@page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" language="java"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <%@include file="/header.jsp" %>
    <body>
        <div class="page">
            <%@include file="/cap.jsp" %>
            <div id="main">
                <h2>Число пользователей по типам.</h2>

                <%Map<String, Integer> userCountByType = (Map<String, Integer>) request.getAttribute(PluginConst.RESULT);%>
                <fieldset>
                    <legend>Данные</legend>
                    <%for (String key : userCountByType.keySet()) {%>

                    <p>
                        <span class="highlight-delete-item">
                            <label>
                                Количество пользователей типа <%="\"" + key + "\" = " + userCountByType.get(key)%>
                            </label>
                        </span>
                    <p/>

                    <%}%>
                </fieldset>
                <div id="weaponmenucontainer">
                    <ul id="weaponmenu">
                        <li><a href="<%= response.encodeURL("user-queries-action.do")
                                                + "?"
                                                + PluginConst.SUBACTION
                                                + "="
                                                + PluginConst.GET_LIST%>">Вернуться к пользовательским запросам</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </body>
</html>
